import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/vue-admin-template/table/list',
    method: 'get',
    params
  })
}

// 售货机类型详情
export function getVmType(typeId) {
  return request({
    url: `/vm-service/vmType/${typeId}`,
    method: 'get'
  })
}

// 新增售货机类型
export function getVmNewType(data) {
  return request({
    url: '/vm-service/vmType',
    method: 'post',
    data
  })
}

// 删除售货机类型
export function DelVmType(typeId) {
  return request({
    url: `/vm-service/vmType/${typeId}`,
    method: 'delete'
  })
}

// 修改售货机点位
export function ChangeNodeId(nodeId) {
  return request({
    url: `/vm-service/vm/:id/${nodeId}`,
    method: 'put'
  })
}

